<?php
/**
 * Created by PhpStorm.
 * User: Tsang
 * Date: 2017/9/24 16:20
 *
 */

namespace app\api\model;

use think\Model;

class Region extends Model
{
   /**
     * 获取区域代理
     */
    public function getOne($where = '')
    {
        $data = $this->where($where)->find();
        return $data;
    }
   /**
     * 添加区域代理
     */
    public function add($data = '')
    {
        $id = $this->insertGetId($data);
        return $id;
    }
}